home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: cs.vu.nl!alverste
- From: alverste@cs.vu.nl (Andre Versteeg)
- Subject: Life is strange, especially with Watcom
- Nntp-Posting-Host: sloep52.cs.vu.nl
- Sender: news@cs.vu.nl
- Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
- Date: Mon, 29 Jan 1996 10:07:50 GMT
- X-Newsreader: TIN [version 1.2 PL2]
- Message-ID: <DLxtH3.AMA.0.-s@cs.vu.nl>
-
-
- I have trouble with the difference between C and C++ with Watcom 10.0:
-
- ---
-
- I have a library with the following function in the .H header file:
-
- int Setup(void)
-
- With this library came a .C example file which used this function as follows:
-
- int v;
- v = Setup();
-
- All compiles very well, until I changed the code to:
-
- int v = Setup(); and changed the filename to .CPP
-
- Now the compiler screams the following:
-
- * Undefined reference: int near Setup(void)
-
- ----
-
- My question is (easy to guess):
-
- How can I change my code, so that the compiler generates it correctly ?
- I'm compiling with DOS4GW in Protected Mode.
-
- Can somebody offer a solution ? I'm not allowed to change the library...
-
-
-